export function scanErcode(back) {
    window.scanErcodeHandler = (str) => {
        if (back.success) {
            back.success(str)
        }

    }
    try {
        ztnCommon.scanErcode()
    } catch (e) {
        if (back.fail) {
            back.fail(e)
        }
    }
}

export function setBarColor(bgColor) {
    try {
        ztnDisplay.setBarColor(bgColor)
    } catch (e) {
    }
}
